using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Reflection;
using System.IO;

namespace Hack.DllDump
{
    public class ParameterList
    {
        protected ArrayList _ParameterList = new ArrayList();
        public ParameterList(ParameterInfo[] list)
        {
            foreach (ParameterInfo info in list)
            {
                _ParameterList.Add(new Parameter(info));
            }
        }

        public void ToString(StringWriter sw)
        {
            sw.Write("(");
            string comma = "";

            foreach (Parameter p in _ParameterList)
            {
                sw.Write(comma);
                p.ToString(sw);
                comma = ",";
            }

            sw.Write(")");
        }
    }
}
